from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
#from pmp.models import Blog

admin.autodiscover()

#blog_set = {
#    'queryset': Blog.objects.all(),
#}

urlpatterns = patterns('',
    # Examples:
    #url(r'^$', 'sr.views.home', name='home'),
    #url(r'^sr/', include('sr.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
	url(r'^admin/', include(admin.site.urls)),
    url(r'^entry/$', 'sr.views.entry', name='home'),
    #url(r'^srentry/$', 'django.views.generic.list_detail.object_list', blog_set),
    url(r'^entry/addEntry/(?P<project_id>\d+)/$', 'sr.views.addEntry'),
    url(r'^entry/addEntry/(?P<project_id>\d+)/postEntry/$', 'sr.views.postEntry')
)
